<% content_for :head do %>
	<%= stylesheet_link_tag 'admin/yui-includes.css' %>
	<%= javascript_include_tag 'yui-includes.js' %>
	<%= javascript_include_tag 'spree-yui.js' %>
	<script type="text/javascript">
	<!-- Add authenticity token to prototype --/>
	Ajax.Base.prototype.initialize = Ajax.Base.prototype.initialize.wrap(
	        function(p, options){
	                p(options);
	                this.options.parameters = this.options.parameters || {};
	                this.options.parameters.authenticity_token = '<%= form_authenticity_token %>';
	        }
	);

	spree.YUI.authenticity_token = '<%= form_authenticity_token %>';
	</script>
<% end %>
